package com.woniu.controller;

import com.woniu.service.CollegeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("college")
public class ColegeController {
    @Resource
    private CollegeService collegeService;

    @GetMapping("findAllColege")
    public List findAllColege(){
        return collegeService.selectByExample(null);
    }
}
